﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BookManage
{
    class Books
    {
        //书籍信息（编码（ISBN）、书籍名称、价格、出版社、作者）
        public int BookISBN { get; set; }
        public string BookName { get; set; }
        public double BookPrice { get; set; }
        public string BookPublic { get; set; }
        public string BookAuthor { get; set; }

        public Books(int isbn,string name,double price,string publics,string author)
        {
            this.BookISBN = isbn;
            this.BookName = name;
            this.BookPrice = price;
            this.BookPublic = publics;
            this.BookAuthor = author;
        }
        public Books()
        {

        }
        public void GetBooks()
        {
            Console.WriteLine("编码：{0}，书名：{1}，价格：{2}，出版社：{3}，作者：{4}",
                this.BookISBN,this.BookName,this.BookPrice,this.BookPublic,this.BookAuthor);
        }
    }
}
